jarfile="target/distribute_file_service-1.0-SNAPSHOT.jar"
p:
	mvn package
run:
	java -jar ${jarfile}
run-ea: # 开启断言检查
	java -ea -jar  ${jarfile}

git-proxy: # 开git代理
	git config --global http.proxy http://127.0.0.1:7890
	git config --global https.proxy https://127.0.0.1:7890
	git config --global -l

git-unproxy: # 关闭git代理
	git config --global --unset http.proxy
	git config --global --unset https.proxy
	git config --global -l

git-protocol-https:# 将本地 Git 仓库从 git 协议切换到 https 协议
	git remote -v
	git remote set-url origin https://gitee.com/uestc-fzk/distribute_file_service.git
	git remote -v

git-protocol-git:# 将本地 Git 仓库从 https 协议切换到 git 协议
	git remote -v
	git remote set-url origin git@gitee.com:uestc-fzk/distribute_file_service.git
	git remote -v

# git提交信息
msg=auto
git-push:
	git add .
	git commit -m "${msg}"
	git push origin main
